import 'package:fluro/fluro.dart';
import 'package:flutter/cupertino.dart';
import 'package:message_tools/ui/page/sms/add_sms_task_page.dart';
import 'package:message_tools/ui/page/sms/add_sms_template_page.dart';
import 'package:message_tools/ui/page/sms/sms_home_page.dart';
import 'package:message_tools/ui/page/sms/sms_task_list_page.dart';
import 'package:message_tools/ui/page/sms/sms_template_list_page.dart';

class Routes {
  static final String RouteSmsHomePage = "/sms_home_page";
  static final String RouteSmsTaskListPage = "/sms_task_list_page";
  static final String RouteAddSmsTaskPage = "/add_sms_task_page";
  static final String RouteSmsTemplateListPage = "/sms_template_list_page";
  static final String RouteAddSmsTemplatePage = "/add_sms_template_page";
  static final String RouteStartSmsTaskPage = "/start_sms_task_page";

  static void configureRoutes(Router router) {
    router.define(RouteSmsHomePage, handler: smsHomePageHandler);
    router.define(RouteSmsTaskListPage, handler: smsTaskListPage);
    router.define(RouteAddSmsTaskPage, handler: addSmsTaskPageHandler);
    router.define(RouteSmsTemplateListPage,
        handler: smsTemplateListPageHandler);
    router.define(RouteAddSmsTemplatePage, handler: addSmsTemplatePageHandler);
    //router.define(RouteStartSmsTaskPage, handler: startSmsTaskPageHandler);
  }

  static final smsHomePageHandler =
      Handler(handlerFunc: (BuildContext context, Map<String, dynamic> params) {
    return SmsHomePage();
  });

  static final smsTaskListPage =
      Handler(handlerFunc: (BuildContext context, Map<String, dynamic> params) {
    return SmsTaskListPage();
  });

  static final addSmsTaskPageHandler =
      Handler(handlerFunc: (BuildContext context, Map<String, dynamic> params) {
    return AddSmsTaskPage();
  });

  static final smsTemplateListPageHandler =
      Handler(handlerFunc: (BuildContext context, Map<String, dynamic> params) {
    return SmsTemplateListPage();
  });

  static final addSmsTemplatePageHandler =
      Handler(handlerFunc: (BuildContext context, Map<String, dynamic> params) {
    return AddSmsTemplatePage();
  });

  /*static final startSmsTaskPageHandler =
      Handler(handlerFunc: (BuildContext context, Map<String, dynamic> params) {
    return StartSmsTaskPage();
  });*/
}
